package Server.TechnicalServices.JDom;

import EntityCondivise.ECalcoloStrategy;
import Ice.Current;
import InterfacceCondivise.XMLFacade;
import Server.TechnicalServices.Mapper.Mapper;
import Server.TechnicalServices.Mapper.MapperFactory;

public class XMLFacadeI extends XMLFacade {

	private static final long serialVersionUID = 1L;
	Server.TechnicalServices.JDom.XMLFacade xml = new Server.TechnicalServices.JDom.XMLFacade();
		
	@Override
	public ECalcoloStrategy getCalcoloStrategy(Current __current) {

		Server.Entity.Dominio.ECalcoloStrategy strategia = null;
		
		strategia = xml.getCalcoloStrategy();
		Mapper map = new MapperFactory().getMapper(strategia);
		ECalcoloStrategy strategiaIce = (ECalcoloStrategy) map.getIceObj( strategia );
		
		return strategiaIce;
	}

}
